<?php
/**
 * Created by PhpStorm.
 * User: yucheng
 * Date: 2017/11/27
 * Time: 18:35
 */

namespace app\admin\controller;

class User
{

	//用户管理主页
	public function index()
	{
		echo 'hello';
	}

	//用户登录
	public function login()
	{

	}

	//检查用户是否登录
	public function check_login(){

	}

	//修改我的密码
	public function changeMyPassword() {
		$us = new UserService();

		if ($us->hasPermission(FIdConst::CHANGE_MY_PASSWORD)) {
			$this->initVar();

			$this->assign("loginUserId", $us->getLoginUserId());
			$this->assign("loginName", $us->getLoginName());
			$this->assign("loginUserName", $us->getLoignUserNameWithOrgFullName());
			$this->assign("title", "修改我的密码");

			$this->display();
		} else {
			$this->gotoLoginPage("/Home/User/changeMyPassword");
		}
	}


}